const Koa = require("koa");
const app = new Koa ();
const tea = require("./model/Teacher");
const stu = require("./model/Student");
const {sequelize}= require("./db")
// const models = require("./model");

console.log(stu);

// 程序运行的时候，初始化数据表

(async=>{
    if(process.env==='product'){
        console.log('当前是生产环境，不能强制修改数据表或者删除数据表');
    }else{
        return sequelize.sync({force:true});
    }

})();
   



app.listen(4000,()=>{
    console.log("服务器运行的地址是:http://127.0.0.1:3000")
})